package com.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/index")
public class IndexController {

	@RequestMapping(value="login")
	public String login(HttpSession session,HttpServletRequest request) {
		System.out.println("登录");
		return "../index";
	}
	@RequestMapping(value="register")
	public String register(Model model) {
		System.out.println("注册");
		return "index";
	}
}
